package com.situ.company.controller;

import java.io.IOException;

import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;

import com.situ.company.entity.User;

@WebServlet("/role")
public class RoleServlet extends HttpServlet{

	@Override
	protected void service(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
		String method = req.getParameter("method");
		String method1 = req.getParameter("method1");
		
		// 判断用户有没有登录根据session里面有没有user对象
//		HttpSession session = req.getSession();
//		User user = (User) session.getAttribute("user");
//		if (user == null) {
//			resp.sendRedirect(req.getContextPath() + "/login.jsp");
//			return;
//		}
		switch ("method") {
		case "selectAll":
			
			break;

		default:
			break;
		}
	}
}
